class RequestInfo():
    def __init__(self,info_dict):
        self.status = 1
        self.message = ""
        self.sessionId = ""
        self.image = ""
        self.use_type = ""
        self.use_fuc = ''
        if "sessionId" not in info_dict:
            self.status = 0
            self.message = "参数错误，未传入SessionId"
        else:
            self.sessionId = info_dict["sessionId"]

        if "image" not in info_dict:
            self.status = 0
            self.message = "参数错误，未传入image"
        else:
            self.image = info_dict["image"]

        if 'use_type' in info_dict:
            self.use_type = info_dict['use_type']

        if 'use_fuc' in info_dict:
            self.use_fuc = info_dict['use_fuc']
